#ifndef _FURNITURE_H_
#define _FURNITURE_H_

namespace iotek {

class Sofa {
private:
  int m_weight;
public:
  Sofa(int);
  void setWeight(int);
  int getWeight();
  void watchTV();
};

class Bed {
private:
  int m_weight;
public:
  Bed(int);
  void setWeight(int);
  int getWeight();
  void sleep();
};

class Sofabed : public Sofa, public Bed {
public:
  // 如果是一个无参构造，那么父类中也一定要存在对应的无参构造。
  // Sofabed();
  
  Sofabed(int);
  void foldout();
};

}

#endif